<template>
    <div class="ps-main-container" id="container">
        <div class="abso-bot ps-white-bg">
            <p class="ps-author">陈道诚&nbsp;&nbsp;13552106430</p>
        </div>
    </div>
</template>
<style lang="less" scoped>
    @import "./../../assets/css/variable_gather";
    .ps-main-container{
        background: url("./../../assets/image/welcome.png") no-repeat center center;
        background-size: 100% 100%;
    }
    .ps-white-bg{
        .white-bg(0.5);
    }
    .ps-author{
        .line-two();
        .txt-center();
    }
</style>
<script>
    import { mapState, mapGetters, mapActions } from 'vuex'
    import axios from 'axios'
    export default{
        data(){
            return{
                isFirstLoad:true,
                storage: ''
            }
        },
        methods:{
            ...mapActions({
                'welInitParams': 'welInitParams',
                'ceshiAjax': 'ceshiAjax'
            }),
            firstControl(){
                this.isHide = true
                this.$router.push('/home')
            }
        },
        computed:{
            ...mapGetters({
                comMtn: 'comMtnState'
            })
        },
        created(){
            this.storage = require("storejs");
            if(!this.storage.get('isFirst')){
                this.storage.set('isFirst',true);
            }
        },
        mounted(){
            //第一次登陆2s后跳转
            if(this.storage.get('isFirst')){
                let timer = setTimeout( () =>{
                   this.firstControl()
                },2000)
            }else{
                this.firstControl()
            }
        },
        components:{

        }
    }
</script>
